package com.shen.thread.demo1.proxy;

public class Wedding implements Marry {
    private Marry target;

    public Wedding(Marry target) {
        this.target = target;
    }

    @Override
    public void Marry() {
        before();
        this.target.Marry();
        after();
    }

    public void before() {
        System.out.println("代理人物帮忙");
    }

    public void after() {
        System.out.println("给钱");
    }
}
